import cv2 as cv

if '__main__' == __name__:

    # https://zhuanlan.zhihu.com/p/410857684

    cnt = cv.cuda.getCudaEnabledDeviceCount()
    print(cnt)

    # https://stackoverflow.com/questions/17347308/how-to-check-if-opencv-was-compiled-with-tbb-cuda-or-qt-support
    print(cv.getBuildInformation())
